home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr27 / gs26.zip / GSCONFIG.BAT < prev    next >
DOS Batch File  |  1993-03-11  |  1KB  |  41 lines

  1. @echo off
  2. rem If DEVICE_DEVS is empty, there is only one argument, a +.
  3. if '%2'=='' goto init
  4. if '%1'=='+' goto noinit
  5. :init
  6. echo + >_temp_.dob
  7. echo # >_temp_.dow
  8. echo /* This file was automatically generated by Ghostscript (gsconfig.bat). */ >_temp_.dh
  9. echo /* See gconfig.c for documentation. */ >>_temp_.dh
  10. echo #include "gsconfig.h" >>_temp_.dh
  11. echo /* */ >_temp_.dop
  12. echo + >_temp_.dlb
  13. echo @echo off >_temp_.bat
  14. goto top
  15. :noinit
  16. shift
  17. :top
  18. if '%1'=='' goto done
  19. if '%1'=='+' goto nofin
  20. copy /b _temp_.bat+%1 >nul
  21. shift
  22. goto top
  23. :done
  24. command /c _temp_.bat >nul
  25. rem    We can't pipe the output of sort directly into uniq,
  26. rem    because of the message from the Watcom DOS extender.
  27. sort <_temp_.dob >_temp_.dtr
  28. uniq _temp_.dtr obj.tr
  29. sort <_temp_.dow >_temp_.dtr
  30. uniq _temp_.dtr objw.tr
  31. sort <_temp_.dop >_temp_.dtr
  32. uniq _temp_.dtr _temp_.dop
  33. copy /b _temp_.dh+_temp_.dop >nul
  34. if exist lib.tr erase lib.tr
  35. rename _temp_.dlb lib.tr
  36. if exist gconfig.h erase gconfig.h
  37. rename _temp_.dh gconfig.h
  38. erase _temp_.d*
  39. erase _temp_*.bat
  40. :nofin
  41.